package java0107.t;


import java.util.ArrayList;
import java.util.List;

public class Java01 {
    public static void main(String[] args) {

        List<String> list = new ArrayList<String>();

        list.add("死之鸟");
        list.add("黑夜骑兵");
        list.add("祖灵之王");

        for (String s:list) {
            System.out.println(s);
        }
        list.forEach(x->{
            System.out.println(x);
        });
        list.forEach(System.out::println);

    }




}
